<?php

namespace Yj\Generator\Core;

use Yj\Generator\Core\Model\EloquentModel;

class Generator
{


    private ModelBuilder $modelBuilder;

    public function __construct(ModelBuilder $modelBuilder)
    {
        $this->modelBuilder = $modelBuilder;
    }

    /**
     * @Notes:【】
     * @User: zwc
     * @Date: 2022/3/2 19:44
     * @return EloquentModel
     */
    public function generateModel(Config $config)
    {
        $model = $this->modelBuilder->createModel($config);
//        $content = $model->render();
        return $model;
    }
}